<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/homepage' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>全部商品</el-breadcrumb-item>
      <el-breadcrumb-item>搜索</el-breadcrumb-item>
      <el-breadcrumb-item></el-breadcrumb-item>
    </el-breadcrumb>

    <el-tabs
      v-model="activeName"
      type="card"
      style="width: 1225px;line-height: 30px;font-size: 16px; margin-left: 96px;"
    >
      <el-tab-pane v-for="item in BiaoList" :key="item.category_id" :label="item.category_name">{{item.category_name}}</el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import API from "../api/shopp";
export default {
  data() {
    return {
      activeName: "",
      BiaoLists: []
    };
  },
  created() {
    this.List();
  },
  methods: {
    async List() {
      let res = await API.shoppList();
      console.log(res);
      this.BiaoList = res;
    }
  }
};
</script>
<style lang="scss" scoped>
.el-breadcrumb {
  width: 1225px;
  line-height: 30px;
  font-size: 16px;
  margin-left: 96px;
}
</style>
